function [g,x] = pulse(tau,L,P)
%PULSE Summary of this function goes here
%   Detailed explanation goes here

x = 0:1/P:L;
x_shifted = x-tau;
g = zeros(1, L*P+1);

for i=1:length(g)
    g(i) = get_pulse(x_shifted(i));
end

%g(1+tau*P:1+tau*P+P) = linspace(0, 1, L*P/3+1);
%g(1+tau*P+P:end) = linspace(1, 0, L*P/3+1);

end

